package ar.com.photo_admin.domain

import ar.com.photo_admin.domain.price_strategies.*;

class Photographer extends User {

	PhotographerPrices pricesConfiguration
	
	float minOrderCost = 50.0f
		
	PriceStrategy priceStrategy
	
	boolean paymentOnlineEnabled = false;
	
	String clientId 
	
	String clientSecret	
	
    static constraints = {
		pricesConfiguration(nullable:true)
		minOrderCost(min:0.0f)
		priceStrategy(nullable:false)
		clientId(blank:true,nullable:true)
		clientSecret(blank:true,nullable:true)
    }
	
	static mapping = {
		
		table '`photographer`'
	}
}
